#include<stdio.h>
#include<conio.h>
#include<math.h>
int chan(int a[],int n){
	for(int i=0;i<n;i++)
	if((a[i]%2)==0)
	printf("\t%d",a[i]);
	printf("\n");
}
int le(int a[],int n){
	for(int i=0;i<n;i++)
	if((a[i]%2)!=0)
	printf("\t%d",a[i]);
}
int main(){
	int a[100],n;
	printf("Nhap so phan tu cua mang: ");
	scanf("%d",&n);
	for(int i=0;i<n;i++){
		printf("a[%d]= ",i);
		scanf("%d",&a[i]);
	}
	printf("Cac phan tu chan trong mang\n");
	chan(a,n);
	printf("Cac phan tu le trong mang \n");
	le(a,n);
}
